#define _CRT_SECURE_NO_WARNINGS 1

#include "experiment.h"
using namespace std;

void maxAndMin() {
	int inputArray[] = { 5, 8, 7, -15, 78, 4, 1, 3 };
	int size = sizeof(inputArray) / sizeof(inputArray[0]);
	ArrayMaxAndMin testArray(inputArray, size);
	testArray.printMaxAndMin();
}


void merge() {
	int inputArray[] = { 5, 8, 7, 1, 2, 9 };
	int size = sizeof(inputArray) / sizeof(inputArray[0]);
	Merge merge;
	int* result = new int[size];
	result = merge.doMerge(inputArray, 0, size - 1, result);

	for (int i = 0; i < size; i++) {
		printf("%d\n", result[i]);
	}
	
}
int main() {
	//maxAndMin();

	merge();

	return 0;
}